package com.catering.mapper;

import com.catering.domain.Orders;
import com.catering.domain.DishOrder;
import com.catering.domain.OrderList;

import java.util.List;

/**
* @author 86175
* @description 针对表【order_list(订单表)】的数据库操作Mapper
* @createDate 2024-10-18 11:00:34
* @Entity com.catering.domain.OrderList
*/
public interface OrderListMapper {

    int deleteByPrimaryKey(Long id);

    int insert(OrderList record);

    int insertSelective(OrderList record);

    OrderList selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(OrderList record);

    int updateByPrimaryKey(OrderList record);

    //获取所有orderlist
    List<OrderList> getAllOrderList();

    //详细订单信息
    List<Orders> getDetailsOrder();

    //获取订单中下单的菜品
    List<DishOrder> getDishOrder();

    //根据id查找订单对应菜品
    List<DishOrder> getDishOrderById(Integer id);

    //模糊搜索所有订单符合条件的订单
    List<Orders> getOrderLike(String message);

    //获取最新的orderlist copy
    OrderList getNewOrderList();

}
